/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2025-02-19 19:57:54
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2025-02-27 16:26:43
 * @FilePath: \web-warningdevicemanage-v2\src\router\routes\modules\audit.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { type RouteRecordRaw } from 'vue-router';

export const auditRoutes: RouteRecordRaw[] = [
  {
    path: '/audit',
    name: 'audit',
    meta: { title: '安全审计', icon: 'examine_1' },
    children: [
      {
        name: 'monitor',
        path: '/monitor',
        redirect: '/monitor/dataMonitoring',
        meta: { title: '监控审计', icon: 'menu-clipboard' },
        children: [
          {
            path: 'dataMonitoring',
            name: 'dataMonitoring',
            meta: { title: '数据监控', icon: 'menu-druid' },
            component: () =>
              import('@/views/audit/monitor/dataMonitoring/Index.vue'),
          },
          {
            path: 'server',
            name: 'server',
            meta: { title: '服务监控', icon: 'menu-screen' },
            component: () => import('@/views/audit/monitor/server/Index.vue'),
          },

          {
            path: 'cache',
            name: 'cache',
            meta: { title: '缓存监控', icon: 'menu-screen-alt' },
            component: () => import('@/views/audit/monitor/cache/Index.vue'),
          },
        ],
      },
      {
        path: '/access',
        name: 'access',
        meta: { title: '访问控制', icon: 'menu-date-range' },
        children: [
          {
            path: 'online',
            name: 'online',
            meta: { title: '登录控制', icon: 'menu-online' },
            component: () => import('@/views/audit/access/online/Index.vue'),
          },
          {
            path: 'blacklist',
            name: 'blacklist',
            meta: { title: '黑名单限制', icon: 'menu-lock' },
            component: () => import('@/views/audit/access/blacklist/Index.vue'),
          },
          {
            path: 'whitelist',
            name: 'whitelist',
            meta: { title: '白名单限制', icon: 'menu-lock' },
            component: () => import('@/views/audit/access/whitelist/Index.vue'),
          },
        ],
      },
      {
        path: '/log',
        name: 'log',
        meta: { title: '日志管理', icon: 'menu-log2' },
        children: [
          {
            path: 'warnLogs',
            name: 'warnLogs',
            meta: { title: '告警日志', icon: 'menu-date' },
            component: () => import('@/views/audit/log/warnLogs/Index.vue'),
          },
          {
            path: 'operationLogs',
            name: 'operationLogs',
            meta: { title: '操作日志', icon: 'menu-form' },
            component: () =>
              import('@/views/audit/log/operationLogs/Index.vue'),
          },
          {
            path: 'loginLogs',
            name: 'loginLogs',
            meta: { title: '登录日志', icon: 'menu-logininfor' },
            component: () => import('@/views/audit/log/loginLogs/Index.vue'),
          },
          {
            path: 'operationRecord',
            name: 'operationRecord',
            meta: { title: '设备日志', icon: 'menu-logininfor' },
            component: () =>
              import('@/views/audit/log/operationRecord/Index.vue'),
          },
        ],
      },
    ],
  },
];
